package top.zhangjianyong.tools.service.mybatis;

import com.baomidou.mybatisplus.extension.service.IService;
import top.zhangjianyong.tools.entity.ETF;

import java.math.BigDecimal;
import java.util.List;

public interface IETFService extends IService<ETF> {
    ETF getByCode(String code);

    boolean existUpdateFail(int times);

    boolean setHoldFlag(String code, Integer flag);

    boolean setUpdateFlag(String code, int i);

    boolean addUpdateFlag(String code);

    List<ETF> listNotDel();

    boolean resetHold();

    boolean update3DownRate(String code, BigDecimal rate);

    boolean removeByCode(String code);
}
